/*
 * Copyright 2009, Axel Dörfler, axeld@pinc-software.de.
 * Distributed under the terms of the MIT License.
 */


#include "UnicodeBlocks.h"

#include <Catalog.h>

#undef B_TRANSLATION_CONTEXT
#define B_TRANSLATION_CONTEXT "UnicodeBlocks"

const unicode_block kNoBlock;

const struct unicode_block_entry kUnicodeBlocks[] = {
	{B_TRANSLATE("Basic Latin"), 0x0000, 0x007f, false, B_BASIC_LATIN_BLOCK},
	{B_TRANSLATE("Latin-1 supplement"), 0x0080, 0x00ff, false,
		B_LATIN1_SUPPLEMENT_BLOCK},
	{B_TRANSLATE("Latin extended A"), 0x0100, 0x017f, false,
		B_LATIN_EXTENDED_A_BLOCK},
	{B_TRANSLATE("Latin extended B"), 0x0180, 0x024f, false,
		B_LATIN_EXTENDED_B_BLOCK},
	{B_TRANSLATE("IPA extensions"), 0x0250, 0x02af, false,
		B_IPA_EXTENSIONS_BLOCK},
	{B_TRANSLATE("Spacing modifier letters"), 0x02b0, 0x02ff, false,
		B_SPACING_MODIFIER_LETTERS_BLOCK},
	{B_TRANSLATE("Combining diacritical marks"), 0x0300, 0x036f, false,
		B_COMBINING_DIACRITICAL_MARKS_BLOCK},
	{B_TRANSLATE("Greek and Coptic"), 0x0370, 0x03ff, false,
		B_BASIC_GREEK_BLOCK | B_GREEK_SYMBOLS_AND_COPTIC_BLOCK},
	{B_TRANSLATE("Cyrillic"), 0x0400, 0x04ff, false, B_CYRILLIC_BLOCK},
	{B_TRANSLATE("Cyrillic supplement"), 0x0500, 0x052f, false,
		B_CYRILLIC_BLOCK},
	{B_TRANSLATE("Armenian"), 0x0530, 0x058f, false, B_ARMENIAN_BLOCK},
	{B_TRANSLATE("Hebrew"), 0x0590, 0x05ff, false,
		B_BASIC_HEBREW_BLOCK | B_HEBREW_EXTENDED_BLOCK},
	{B_TRANSLATE("Arabic"), 0x0600, 0x06ff, false,
		B_BASIC_ARABIC_BLOCK | B_ARABIC_EXTENDED_BLOCK},
	{B_TRANSLATE("Syriac"), 0x0700, 0x074f, false, kNoBlock},
	{B_TRANSLATE("Arabic supplement"), 0x0750, 0x077f, false, kNoBlock},
	{B_TRANSLATE("Thaana"), 0x0780, 0x07bf, false, kNoBlock},
	{B_TRANSLATE("N'Ko"), 0x07c0, 0x07ff, false, kNoBlock},
	{B_TRANSLATE("Samaritan"), 0x0800, 0x083f, false, kNoBlock},
	{B_TRANSLATE("Mandaic"), 0x0840, 0x085f, false, kNoBlock},
	{B_TRANSLATE("Devanagari"), 0x0900, 0x097f, false, B_DEVANAGARI_BLOCK},
	{B_TRANSLATE("Bengali"), 0x0980, 0x09ff, false, B_BENGALI_BLOCK},
	{B_TRANSLATE("Gurmukhi"), 0x0a00, 0x0a7f, false, B_GURMUKHI_BLOCK},
	{B_TRANSLATE("Gujarati"), 0x0a80, 0x0aff, false, B_GUJARATI_BLOCK},
	{B_TRANSLATE("Oriya"), 0x0b00, 0x0b7f, false, B_ORIYA_BLOCK},
	{B_TRANSLATE("Tamil"), 0x0b80, 0x0bff, false, B_TAMIL_BLOCK},
	{B_TRANSLATE("Telugu"), 0x0c00, 0x0c7f, false, B_TELUGU_BLOCK},
	{B_TRANSLATE("Kannada"), 0x0c80, 0x0cff, false, B_KANNADA_BLOCK},
	{B_TRANSLATE("Malayalam"), 0x0d00, 0x0d7f, false, B_MALAYALAM_BLOCK},
	{B_TRANSLATE("Sinhala"), 0x0d80, 0x0dff, false, kNoBlock},
	{B_TRANSLATE("Thai"), 0x0e00, 0x0e7f, false, B_THAI_BLOCK},
	{B_TRANSLATE("Lao"), 0x0e80, 0x0eff, false, B_LAO_BLOCK},
	{B_TRANSLATE("Tibetan"), 0x0f00, 0x0fff, false, kNoBlock},
	{B_TRANSLATE("Myanmar"), 0x1000, 0x109f, false, kNoBlock},
	{B_TRANSLATE("Georgian"), 0x10a0, 0x10ff, false, B_BASIC_GEORGIAN_BLOCK},
	{B_TRANSLATE("Hangul Jamo"), 0x1100, 0x11ff, false, kNoBlock},
// TODO!
	{B_TRANSLATE("Ethiopic"), 0x1200, 0x137f, false, kNoBlock},
	{B_TRANSLATE("Ethiopic supplement"), 0x1380, 0x139f, false, kNoBlock},
	{B_TRANSLATE("Cherokee"), 0x13a0, 0x13ff, false, kNoBlock},
	{B_TRANSLATE("Unified Canadian Aboriginal syllabics"),
		0x1400, 0x167f, false, kNoBlock},
	{B_TRANSLATE("Ogham"), 0x1680, 0x169f, false, kNoBlock},
	{B_TRANSLATE("Runic"), 0x16a0, 0x16ff, false, kNoBlock},
	{B_TRANSLATE("Tagalog"), 0x1700, 0x171f, false, kNoBlock},
	{B_TRANSLATE("Hanunoo"), 0x1720, 0x173f, false, kNoBlock},
	{B_TRANSLATE("Buhid"), 0x1740, 0x175f, false, kNoBlock},
	{B_TRANSLATE("Tagbanwa"), 0x1760, 0x177f, false, kNoBlock},
	{B_TRANSLATE("Khmer"), 0x1780, 0x17ff, false, kNoBlock},
	{B_TRANSLATE("Mongolian"), 0x1800, 0x18af, false, kNoBlock},
	{B_TRANSLATE("Limbu"), 0x1900, 0x194f, false, kNoBlock},
	{B_TRANSLATE("Tai Le"), 0x1950, 0x197f, false, kNoBlock},
	{B_TRANSLATE("New Tai Lue"), 0x1980, 0x19df, false, kNoBlock},
	{B_TRANSLATE("Khmer symbols"), 0x19e0, 0x19ff, false, kNoBlock},
	{B_TRANSLATE("Buginese"), 0x1a00, 0x1a1f, false, kNoBlock},
	{B_TRANSLATE("Tai Tham"), 0x1a20, 0x1aaf, false, kNoBlock},
	{B_TRANSLATE("Combining diacritical marks extended"),
		0x1ab0, 0x1aff, false, kNoBlock},
	{B_TRANSLATE("Balinese"), 0x1b00, 0x1b7f, false, kNoBlock},
	{B_TRANSLATE("Sundanese"), 0x1b80, 0x1bbf, false, kNoBlock},
	{B_TRANSLATE("Batak"), 0x1bc0, 0x1bff, false, kNoBlock},
	{B_TRANSLATE("Lepcha"), 0x1c00, 0x1c4f, false, kNoBlock},
	{B_TRANSLATE("Ol Chiki"), 0x1c50, 0x1c7f, false, kNoBlock},
	{B_TRANSLATE("Cyrillic extended C"), 0x1c80, 0x1c8f, false, kNoBlock},
	{B_TRANSLATE("Georgian extended"), 0x1c90, 0x1cbf, false, kNoBlock},
	{B_TRANSLATE("Sudanese supplement"), 0x1cc0, 0x1ccf, false, kNoBlock},
	{B_TRANSLATE("Vedic extensions"), 0x1cd0, 0x1cff, false, kNoBlock},
	{B_TRANSLATE("Phonetic extensions"), 0x1d00, 0x1d7f, false, kNoBlock},
	{B_TRANSLATE("Phonetic extensions supplement"),
		0x1d80, 0x1dbf, false, kNoBlock},
	{B_TRANSLATE("Combining diacritical marks supplement"),
		0x1dc0, 0x1dff, false, kNoBlock},
	{B_TRANSLATE("Latin extended additional"),
		0x1e00, 0x1eff, false, kNoBlock},
	{B_TRANSLATE("Greek extended"), 0x1f00, 0x1fff, false, kNoBlock},
	{B_TRANSLATE("General punctuation"), 0x2000, 0x206f, false, kNoBlock},
	{B_TRANSLATE("Superscripts and subscripts"),
		0x2070, 0x209f, false, kNoBlock},
	{B_TRANSLATE("Currency symbols"), 0x20a0, 0x20cf, false, kNoBlock},
	{B_TRANSLATE("Combining diacritical marks for symbols"),
		0x20d0, 0x20ff, false, kNoBlock},
	{B_TRANSLATE("Letterlike symbols"), 0x2100, 0x214f, false, kNoBlock},
	{B_TRANSLATE("Number forms"), 0x2150, 0x218f, false, kNoBlock},
	{B_TRANSLATE("Arrows"), 0x2190, 0x21ff, false, kNoBlock},
	{B_TRANSLATE("Mathematical operators"), 0x2200, 0x22ff, false, kNoBlock},
	{B_TRANSLATE("Miscellaneous technical"), 0x2300, 0x23ff, false, kNoBlock},
	{B_TRANSLATE("Control pictures"), 0x2400, 0x243f, false, kNoBlock},
	{B_TRANSLATE("Optical character recognition"),
		0x2440, 0x245f, false, kNoBlock},
	{B_TRANSLATE("Enclosed alphanumerics"), 0x2460, 0x24ff, false, kNoBlock},
	{B_TRANSLATE("Box drawing"), 0x2500, 0x257f, false, kNoBlock},
	{B_TRANSLATE("Block elements"), 0x2580, 0x259f, false, kNoBlock},
	{B_TRANSLATE("Geometric shapes"), 0x25a0, 0x25ff, false, kNoBlock},
	{B_TRANSLATE("Miscellaneous symbols"), 0x2600, 0x26ff, false, kNoBlock},
	{B_TRANSLATE("Dingbats"), 0x2700, 0x27bf, false, kNoBlock},
	{B_TRANSLATE("Miscellaneous mathematical symbols A"),
		0x27c0, 0x27ef, false, kNoBlock},
	{B_TRANSLATE("Supplemental arrows A"), 0x27f0, 0x27ff, false, kNoBlock},
	{B_TRANSLATE("Braille patterns"), 0x2800, 0x28ff, false, kNoBlock},
	{B_TRANSLATE("Supplemental arrows B"), 0x2900, 0x297f, false, kNoBlock},
	{B_TRANSLATE("Miscellaneous mathematical symbols B"),
		0x2980, 0x29ff, false, kNoBlock},
	{B_TRANSLATE("Supplemental mathematical operators"),
		0x2a00, 0x2aff, false, kNoBlock},
	{B_TRANSLATE("Miscellaneous symbols and arrows"),
		0x2b00, 0x2bff, false, kNoBlock},
	{B_TRANSLATE("Glagotic"), 0x2c00, 0x2c5f, false, kNoBlock},
	{B_TRANSLATE("Latin extended C"), 0x2c60, 0x2c7f, false, kNoBlock},
	{B_TRANSLATE("Coptic"), 0x2c80, 0x2cff, false, kNoBlock},
	{B_TRANSLATE("Georgian supplement"), 0x2d00, 0x2d2f, false, kNoBlock},
	{B_TRANSLATE("Tifinagh"), 0x2d30, 0x2d7f, false, kNoBlock},
	{B_TRANSLATE("Ethiopic extended"), 0x2d80, 0x2ddf, false, kNoBlock},
	{B_TRANSLATE("Cyrillic extended A"), 0x2de0, 0x2dff, false, kNoBlock},
	{B_TRANSLATE("Supplement punctuation"), 0x2e00, 0x2e7f, false, kNoBlock},
	{B_TRANSLATE("CJK radicals supplement"), 0x2e80, 0x2eff, false, kNoBlock},
	{B_TRANSLATE("Kangxi radicals"), 0x2f00, 0x2fdf, false, kNoBlock},
	{B_TRANSLATE("Ideographic description characters"),
		0x2ff0, 0x2fff, false, kNoBlock},
	{B_TRANSLATE("CJK symbols and punctuation"),
		0x3000, 0x303f, false, kNoBlock},
	{B_TRANSLATE("Hiragana"), 0x3040, 0x309f, false, kNoBlock},
	{B_TRANSLATE("Katakana"), 0x30a0, 0x30ff, false, kNoBlock},
	{B_TRANSLATE("Bopomofo"), 0x3100, 0x312f, false, kNoBlock},
	{B_TRANSLATE("Hangul compatibility Jamo"), 0x3130, 0x318f, false, kNoBlock},
	{B_TRANSLATE("Kanbun"), 0x3190, 0x319f, false, kNoBlock},
	{B_TRANSLATE("Bopomofo extended"), 0x31a0, 0x31bf, false, kNoBlock},
	{B_TRANSLATE("CJK strokes"), 0x31c0, 0x31ef, false, kNoBlock},
	{B_TRANSLATE("Katakana phonetic extensions"),
		0x31f0, 0x31ff, false, kNoBlock},
	{B_TRANSLATE("Enclosed CJK letters and months"),
		0x2ff0, 0x2fff, false, kNoBlock},
	{B_TRANSLATE("CJK compatibility"), 0x3300, 0x33ff, false, kNoBlock},
	{B_TRANSLATE("CJK unified ideographs extension A"),
		0x3400, 0x4dbf, false, kNoBlock},
	{B_TRANSLATE("Yijing hexagram symbols"), 0x4dc0, 0x4dff, false, kNoBlock},
	{B_TRANSLATE("CJK unified ideographs"), 0x4e00, 0x9fff, false, kNoBlock},
	{B_TRANSLATE("Yi syllables"), 0xa000, 0xa48f, false, kNoBlock},
	{B_TRANSLATE("Yi Radicals"), 0xa490, 0xa4cf, false, kNoBlock},
	{B_TRANSLATE("Lisu"), 0xa4d0, 0xa4ff, false, kNoBlock},
	{B_TRANSLATE("Vai"), 0xa500, 0xa63f, false, kNoBlock},
	{B_TRANSLATE("Cyrillic extended B"), 0xa640, 0xa69f, false, kNoBlock},
	{B_TRANSLATE("Modifier tone letters"), 0xa700, 0xa71f, false, kNoBlock},
	{B_TRANSLATE("Latin extended D"), 0xa720, 0xa7ff, false, kNoBlock},
	{B_TRANSLATE("Syloti Nagri"), 0xa800, 0xa82f, false, kNoBlock},
	{B_TRANSLATE("Common Indic number forms"), 0xa830, 0xa83f, false, kNoBlock},
	{B_TRANSLATE("Phags-pa"), 0xa840, 0xa87f, false, kNoBlock},
	{B_TRANSLATE("Saurashtra"), 0xa880, 0xa8df, false, kNoBlock},
	{B_TRANSLATE("Devanagari extended"), 0xa8e0, 0xa8ff, false, kNoBlock},
	{B_TRANSLATE("Kayah Li"), 0xa900, 0xa92f, false, kNoBlock},
	{B_TRANSLATE("Rejang"), 0xa930, 0xa95f, false, kNoBlock},
	{B_TRANSLATE("Hangul Jamo extended A"), 0xa960, 0xa97f, false, kNoBlock},
	{B_TRANSLATE("Javanese"), 0xa980, 0xa9df, false, kNoBlock},
	{B_TRANSLATE("Myanmar extended B"), 0xa9e0, 0xa9ff, false, kNoBlock},
	{B_TRANSLATE("Cham"), 0xaa00, 0xaa5f, false, kNoBlock},
	{B_TRANSLATE("Myanmar extended A"), 0xaa60, 0xaa7f, false, kNoBlock},
	{B_TRANSLATE("Tai Viet"), 0xaa80, 0xaadf, false, kNoBlock},
	{B_TRANSLATE("Meetei Mayek extensions"), 0xaae0, 0xaaff, false, kNoBlock},
	{B_TRANSLATE("Ethiopic extended A"), 0xab00, 0xab2f, false, kNoBlock},
	{B_TRANSLATE("Latin extended E"), 0xab30, 0xab6f, false, kNoBlock},
	{B_TRANSLATE("Cherokee supplement"), 0xab70, 0xabbf, false, kNoBlock},
	{B_TRANSLATE("Meetei Mayek"), 0xabc0, 0xabff, false, kNoBlock},
	{B_TRANSLATE("Hangul syllables"), 0xac00, 0xd7af, false, kNoBlock},
	{B_TRANSLATE("Hangul Jamo extended B"), 0xd7b0, 0xd7ff, false, kNoBlock},
//	{B_TRANSLATE("High surrogates"), 0xd800, 0xdb7f, false, kNoBlock},
//	{B_TRANSLATE("High private use surrogates"), 0xdb80, 0xdbff, false, kNoBlock},
//	{B_TRANSLATE("Low surrogates"), 0xdc00, 0xdfff, false, kNoBlock},
	{B_TRANSLATE("Private use area"), 0xe000, 0xf8ff, true, kNoBlock},
	{B_TRANSLATE("CJK compatibility ideographs"),
		0xf900, 0xfaff, false, kNoBlock},
	{B_TRANSLATE("Alphabetic presentation forms"),
		0xfb00, 0xfb4f, false, kNoBlock},
	{B_TRANSLATE("Arabic presentation forms A"),
		0xfb50, 0xfdff, false, kNoBlock},
	{B_TRANSLATE("Variation selectors"), 0xfe00, 0xfe0f, false, kNoBlock},
	{B_TRANSLATE("Vertical forms"), 0xfe10, 0xfe1f, false, kNoBlock},
	{B_TRANSLATE("Combining half marks"), 0xfe20, 0xfe2f, false, kNoBlock},
	{B_TRANSLATE("CJK compatibility forms"), 0xfe30, 0xfe4f, false, kNoBlock},
	{B_TRANSLATE("Small form variants"), 0xfe50, 0xfe6f, false, kNoBlock},
	{B_TRANSLATE("Arabic presentation forms B"),
		0xfe70, 0xfeff, false, kNoBlock},
	{B_TRANSLATE("Halfwidth and fullwidth forms"),
		0xff00, 0xffef, false, kNoBlock},
	{B_TRANSLATE("Specials"), 0xfff0, 0xffff, false, kNoBlock},
	{B_TRANSLATE("Linear B syllabary"), 0x010000, 0x01007f, false, kNoBlock},
	{B_TRANSLATE("Linear B ideograms"), 0x010080, 0x0100ff, false, kNoBlock},
	{B_TRANSLATE("Aegean numbers"), 0x010100, 0x01013f, false, kNoBlock},
	{B_TRANSLATE("Ancient Greek numbers"),
		0x010140, 0x01018f, false, kNoBlock},
	{B_TRANSLATE("Ancient symbols"), 0x010190, 0x0101cf, false, kNoBlock},
	{B_TRANSLATE("Phaistos disc"), 0x0101d0, 0x0101ff, false, kNoBlock},
	{B_TRANSLATE("Lycian"), 0x010280, 0x01029f, false, kNoBlock},
	{B_TRANSLATE("Carian"), 0x0102a0, 0x0102df, false, kNoBlock},
	{B_TRANSLATE("Old italic"), 0x010300, 0x01032f, false, kNoBlock},
	{B_TRANSLATE("Gothic"), 0x010330, 0x01034f, false, kNoBlock},
	{B_TRANSLATE("Old Permic"), 0x010350, 0x01037f, false, kNoBlock},
	{B_TRANSLATE("Ugaritic"), 0x010380, 0x01039f, false, kNoBlock},
	{B_TRANSLATE("Old Persian"), 0x0103a0, 0x0103df, false, kNoBlock},
	{B_TRANSLATE("Deseret"), 0x010400, 0x01044f, false, kNoBlock},
	{B_TRANSLATE("Shavian"), 0x010450, 0x01047f, false, kNoBlock},
	{B_TRANSLATE("Osmanya"), 0x010480, 0x0104af, false, kNoBlock},
	{B_TRANSLATE("Osage"), 0x0104b0, 0x0104ff, false, kNoBlock},
	{B_TRANSLATE("Elbasan"), 0x010500, 0x01052f, false, kNoBlock},
	{B_TRANSLATE("Caucasian Albanian"), 0x010530, 0x01056f, false, kNoBlock},
	{B_TRANSLATE("Linear A"), 0x010600, 0x01077f, false, kNoBlock},
	{B_TRANSLATE("Cypriot syllabary"), 0x010800, 0x01083f, false, kNoBlock},
	{B_TRANSLATE("Imperial Aramaic"), 0x010840, 0x01085f, false, kNoBlock},
	{B_TRANSLATE("Palmyrene"), 0x010860, 0x01087f, false, kNoBlock},
	{B_TRANSLATE("Nabataean"), 0x010880, 0x0108af, false, kNoBlock},
	{B_TRANSLATE("Hatran"), 0x0108e0, 0x0108ff, false, kNoBlock},
	{B_TRANSLATE("Phoenician"), 0x010900, 0x01091f, false, kNoBlock},
	{B_TRANSLATE("Lydian"), 0x010920, 0x01093f, false, kNoBlock},
	{B_TRANSLATE("Meroitic hieroglyphs"), 0x010980, 0x01099f, false, kNoBlock},
	{B_TRANSLATE("Meroitic cursive"), 0x0109a0, 0x0109ff, false, kNoBlock},
	{B_TRANSLATE("Kharoshthi"), 0x010a00, 0x010a5f, false, kNoBlock},
	{B_TRANSLATE("Old South Arabian"), 0x010a60, 0x010a7f, false, kNoBlock},
	{B_TRANSLATE("Old North Arabian"), 0x010a80, 0x010a9f, false, kNoBlock},
	{B_TRANSLATE("Manichaean"), 0x010ac0, 0x010aff, false, kNoBlock},
	{B_TRANSLATE("Avestan"), 0x010b00, 0x010b3f, false, kNoBlock},
	{B_TRANSLATE("Inscriptional Parthian"), 0x010b40, 0x010b5f, false, kNoBlock},
	{B_TRANSLATE("Inscriptional Pahlavi"), 0x010b60, 0x010b7f, false, kNoBlock},
	{B_TRANSLATE("Psalter Pahlavi"), 0x010b80, 0x010baf, false, kNoBlock},
	{B_TRANSLATE("Old Turkic"), 0x010c00, 0x010c4f, false, kNoBlock},
	{B_TRANSLATE("Old Hungarian"), 0x010c80, 0x010cff, false, kNoBlock},
	{B_TRANSLATE("Hanifi Rohingya"), 0x010d00, 0x010d3f, false, kNoBlock},
	{B_TRANSLATE("Rumi numeral symbols"), 0x010e60, 0x010e7f, false, kNoBlock},
	{B_TRANSLATE("Yezidi"), 0x010e80, 0x010ebf, false, kNoBlock},
	{B_TRANSLATE("Old Sogdian"), 0x010f00, 0x010f3f, false, kNoBlock},
	{B_TRANSLATE("Sogdian"), 0x010f30, 0x010f6f, false, kNoBlock},
	{B_TRANSLATE("Chorasmian"), 0x010fb0, 0x010fdf, false, kNoBlock},
	{B_TRANSLATE("Elymaic"), 0x010fe0, 0x010fff, false, kNoBlock},
	{B_TRANSLATE("Brahmi"), 0x011000, 0x01107f, false, kNoBlock},
	{B_TRANSLATE("Kaithi"), 0x011080, 0x0110cf, false, kNoBlock},
	{B_TRANSLATE("Sora Sompeng"), 0x0110d0, 0x0110ff, false, kNoBlock},
	{B_TRANSLATE("Chakma"), 0x011100, 0x01114f, false, kNoBlock},
	{B_TRANSLATE("Mahajani"), 0x011150, 0x01117f, false, kNoBlock},
	{B_TRANSLATE("Sharada"), 0x011180, 0x0111df, false, kNoBlock},
	{B_TRANSLATE("Sinhala Archaic numbers"), 0x0111e0, 0x0111ff, false, kNoBlock},
	{B_TRANSLATE("Khojki"), 0x011200, 0x01124f, false, kNoBlock},
	{B_TRANSLATE("Multani"), 0x011280, 0x0112af, false, kNoBlock},
	{B_TRANSLATE("Khudawadi"), 0x0112b0, 0x0112ff, false, kNoBlock},
	{B_TRANSLATE("Grantha"), 0x011300, 0x01137f, false, kNoBlock},
	{B_TRANSLATE("Newa"), 0x011400, 0x01147f, false, kNoBlock},
	{B_TRANSLATE("Tirhuta"), 0x011480, 0x0114df, false, kNoBlock},
	{B_TRANSLATE("Siddham"), 0x011580, 0x0115ff, false, kNoBlock},
	{B_TRANSLATE("Modi"), 0x011600, 0x01165f, false, kNoBlock},
	{B_TRANSLATE("Mongolian supplement"), 0x011660, 0x01167f, false, kNoBlock},
	{B_TRANSLATE("Takri"), 0x011680, 0x0116cf, false, kNoBlock},
	{B_TRANSLATE("Ahom"), 0x011700, 0x01173f, false, kNoBlock},
	{B_TRANSLATE("Dogra"), 0x011800, 0x01184f, false, kNoBlock},
	{B_TRANSLATE("Warang Citi"), 0x0118a0, 0x0118ff, false, kNoBlock},
	{B_TRANSLATE("Dives Akuru"), 0x011900, 0x01195f, false, kNoBlock},
	{B_TRANSLATE("Nandingari"), 0x0119a0, 0x0119ff, false, kNoBlock},
	{B_TRANSLATE("Zanabazar Square"), 0x011a00, 0x011a4f, false, kNoBlock},
	{B_TRANSLATE("Soyombo"), 0x011a50, 0x011aaf, false, kNoBlock},
	{B_TRANSLATE("Pau Cin Hau"), 0x011ac0, 0x011aff, false, kNoBlock},
	{B_TRANSLATE("Bhaiksuki"), 0x011c00, 0x011c6f, false, kNoBlock},
	{B_TRANSLATE("Marchen"), 0x011c70, 0x011cbf, false, kNoBlock},
	{B_TRANSLATE("Masaram Gondi"), 0x011d00, 0x011d5f, false, kNoBlock},
	{B_TRANSLATE("Gunjala Gondi"), 0x011d60, 0x011daf, false, kNoBlock},
	{B_TRANSLATE("Makasar"), 0x011ee0, 0x011eff, false, kNoBlock},
	{B_TRANSLATE("Lisu supplement"), 0x011fb0, 0x011fbf, false, kNoBlock},
	{B_TRANSLATE("Tamil supplement"), 0x011fc0, 0x011fff, false, kNoBlock},
	{B_TRANSLATE("Cuneiform"), 0x012000, 0x0123ff, false, kNoBlock},
	{B_TRANSLATE("Cuneiform numbers and punctuation"),
		0x012400, 0x01247f, false, kNoBlock},
	{B_TRANSLATE("Early Dynastic Cuneiform"),
		0x012480, 0x01254f, false, kNoBlock},
	{B_TRANSLATE("Egyptian hieroglyphs"), 0x013000, 0x01342f, false, kNoBlock},
	{B_TRANSLATE("Egyptian hieroglyph format controls"),
		0x013430, 0x01343f, false, kNoBlock},
	{B_TRANSLATE("Anatolian hieroglyphs"), 0x014400, 0x01467f, false, kNoBlock},
	{B_TRANSLATE("Bamum supplement"), 0x016800, 0x016a3f, false, kNoBlock},
	{B_TRANSLATE("Mro"), 0x016a40, 0x016a6f, false, kNoBlock},
	{B_TRANSLATE("Bassa Vah"), 0x016ad0, 0x016aff, false, kNoBlock},
	{B_TRANSLATE("Pahawh Hmong"), 0x016b00, 0x016b8f, false, kNoBlock},
	{B_TRANSLATE("Medefaidrin"), 0x016e40, 0x016e9f, false, kNoBlock},
	{B_TRANSLATE("Miao"), 0x016f00, 0x016f9f, false, kNoBlock},
	{B_TRANSLATE("Ideographic symbols and punctuation"),
		0x016fe0, 0x016fff, false, kNoBlock},
	{B_TRANSLATE("Tangut"), 0x017000, 0x0187ff, false, kNoBlock},
	{B_TRANSLATE("Tangut components"), 0x018800, 0x018aff, false, kNoBlock},
	{B_TRANSLATE("Khitan small script"), 0x018b00, 0x018cff, false, kNoBlock},
	{B_TRANSLATE("Tangut supplement"), 0x018d00, 0x018d8f, false, kNoBlock},
	{B_TRANSLATE("Kana supplement"), 0x01b000, 0x01b0ff, false, kNoBlock},
	{B_TRANSLATE("Kana extended A"), 0x01b100, 0x01b12f, false, kNoBlock},
	{B_TRANSLATE("Small Kana extension"), 0x01b130, 0x01b16f, false, kNoBlock},
	{B_TRANSLATE("Nüshu"), 0x01b170, 0x01b2ff, false, kNoBlock},
	{B_TRANSLATE("Duployan"), 0x01bc00, 0x01bc9f, false, kNoBlock},
	{B_TRANSLATE("Shorthand format controls"),
		0x01bca0, 0x01bcaf, false, kNoBlock},
	{B_TRANSLATE("Byzantine musical symbols"),
		0x01d000, 0x01d0ff, false, kNoBlock},
	{B_TRANSLATE("Musical symbols"), 0x01d100, 0x01d1ff, false, kNoBlock},
	{B_TRANSLATE("Ancient Greek musical notation"),
		0x01d200, 0x01d24f, false, kNoBlock},
	{B_TRANSLATE("Mayan numerals"), 0x01d2e0, 0x01d2ff, false, kNoBlock},
	{B_TRANSLATE("Tai Xuan Jing symbols"),
		0x01d300, 0x01d35f, false, kNoBlock},
	{B_TRANSLATE("Counting rod numerals"),
		0x01d360, 0x01d37f, false, kNoBlock},
	{B_TRANSLATE("Mathematical alphanumeric symbols"),
		0x01d400, 0x01d7ff, false, kNoBlock},
	{B_TRANSLATE("Sutton SignWriting"), 0x01d800, 0x01daaf, false, kNoBlock},
	{B_TRANSLATE("Glagolitic supplement"), 0x01e000, 0x01e02f, false, kNoBlock},
	{B_TRANSLATE("Nyiakeng Puachue Hmong"), 0x01e100, 0x01e14f, false, kNoBlock},
	{B_TRANSLATE("Wancho"), 0x01e2c0, 0x01e2ff, false, kNoBlock},
	{B_TRANSLATE("Mende Kikakui"), 0x01e800, 0x01e8df, false, kNoBlock},
	{B_TRANSLATE("Adlam"), 0x01e900, 0x01e95f, false, kNoBlock},
	{B_TRANSLATE("Indic Siyaq numbers"), 0x01ec70, 0x01ecbf, false, kNoBlock},
	{B_TRANSLATE("Ottoman Siyaq numbers"), 0x01ed00, 0x01ed4f, false, kNoBlock},
	{B_TRANSLATE("Arabic mathematical alphabetic symbols"),
		0x01ee00, 0x01eeff, false, kNoBlock},
	{B_TRANSLATE("Mahjong tiles"), 0x01f000, 0x01f02f, false, kNoBlock},
	{B_TRANSLATE("Domino tiles"), 0x01f030, 0x01f09f, false, kNoBlock},
	{B_TRANSLATE("Playing cards"), 0x01f0a0, 0x01f0ff, false, kNoBlock},
	{B_TRANSLATE("Enclosed alphanumeric supplement"),
		0x01f100, 0x01f1ff, false, kNoBlock},
	{B_TRANSLATE("Enclosed ideographic supplement"),
		0x01f200, 0x01f2ff, false, kNoBlock},
	{B_TRANSLATE("Miscellaneous symbols and pictographs"),
		0x01f300, 0x01f5ff, false, kNoBlock},
	{B_TRANSLATE("Emoticons"), 0x01f600, 0x01f64f, false, kNoBlock},
	{B_TRANSLATE("Ornamental dingbats"), 0x01f650, 0x01f67f, false, kNoBlock},
	{B_TRANSLATE("Transport and map symbols"),
		0x01f680, 0x01f6ff, false, kNoBlock},
	{B_TRANSLATE("Alchemical symbols"), 0x01f700, 0x01f7ff, false, kNoBlock},
	{B_TRANSLATE("Geometric shapes extended"),
		0x01f780, 0x01f7ff, false, kNoBlock},
	{B_TRANSLATE("Supplemental arrows C"), 0x01f800, 0x01f8ff, false, kNoBlock},
	{B_TRANSLATE("Supplemental Symbols and Pictographs"),
		0x01f900, 0x01f9ff, false, kNoBlock},
	{B_TRANSLATE("Chess symbols"), 0x01fa00, 0x01fa6f, false, kNoBlock},
	{B_TRANSLATE("Symbols and pictographs extended A"),
		0x01fa70, 0x01faff, false, kNoBlock},
	{B_TRANSLATE("Symbols for legacy computing"),
		0x01fb00, 0x01fbff, false, kNoBlock},
	{B_TRANSLATE("CJK unified ideographs extension B"),
		0x020000, 0x02a6df, false, kNoBlock},
	{B_TRANSLATE("CJK unified ideographs extension C"),
		0x02a700, 0x02b73f, false, kNoBlock},
	{B_TRANSLATE("CJK unified ideographs extension D"),
		0x02b740, 0x02b81f, false, kNoBlock},
	{B_TRANSLATE("CJK unified ideographs extension E"),
		0x02b820, 0x02ceaf, false, kNoBlock},
	{B_TRANSLATE("CJK unified ideographs extension F"),
		0x02ceb0, 0x02ebef, false, kNoBlock},
	{B_TRANSLATE("CJK compatibility ideographs Supplement"),
		0x02f800, 0x02fa1f, false, kNoBlock},
	{B_TRANSLATE("Tags"), 0x0e0000, 0x0e007f, false, kNoBlock},
	{B_TRANSLATE("Variation selectors supplement"),
		0x0e0100, 0x0e01ef, false, kNoBlock},
	{B_TRANSLATE("Supplementary private use area A"),
		0x0f0000, 0x0fffff, true, kNoBlock},
	{B_TRANSLATE("Supplementary private use area B"),
		0x100000, 0x10ffff, true, kNoBlock},
};

const uint32 kNumUnicodeBlocks
	= sizeof(kUnicodeBlocks) / sizeof(kUnicodeBlocks[0]);


int32
BlockForCharacter(const uint32 character)
{
	uint32 min = 0;
	uint32 max = kNumUnicodeBlocks;
	uint32 guess = (max + min) / 2;

	while ((max >= min) && (guess < kNumUnicodeBlocks)) {
		uint32 start = kUnicodeBlocks[guess].start;
		uint32 end = kUnicodeBlocks[guess].end;

		if (start <= character && end >= character)
			return guess;

		if (end < character) {
			min = guess + 1;
		} else {
			max = guess - 1;
		}

		guess = (max + min) / 2;
	}

	return -1;
}
